import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:scale',
      order: 3,
      title: $t('page.terms.BinanceRules'),
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'reducePositionTrigger',
    path: '/reduce-position-trigger',
    children: [
      {
        name: 'reducePositionTriggerList',
        path: '/reduce-position-trigger-list',
        component: () => import('#/views/reduce-position-trigger/index.vue'),
        meta: {
          icon: 'lucide:chart-candlestick',
          title: $t('page.terms.BinanceRules'),
          menuVisible: true,
        },
      },
    ],
  },
];

export default routes;
